package cn.cdiothree.service;

import cn.cdiothree.dataobject.OrderComment;
import cn.cdiothree.vo.ResultVo;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * 订单评论服务接口
 * @author cumthing
 */
public interface OrderCommentService extends IService<OrderComment> {

    /**
     * 订单文字评论
     * @param userId
     * @param orderId
     * @param commentText
     * @return
     */
    ResultVo addTextComment(Integer userId, String orderId, String commentText);


    /**
     * 获取订单文字评论
     * @param userId
     * @param orderId
     * @return
     */
    ResultVo getTextComment(Integer userId, String orderId);

    /**
     * 获取订单评论列表
     * @param userId
     * @param orderId
     * @return
     */
    List<OrderComment> getCommentList(Integer userId, String orderId);
}
